home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00103_Script_rollers-extQTVR < prev    next >
Text File  |  1999-04-25  |  1KB  |  35 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13.  
  14. property mySprite, myMember, root
  15.  
  16. on new me
  17.   set mySprite = the spriteNum of me
  18.   set myMember = the member of sprite mySprite
  19.   set root = "qtvr-ext"
  20.   return me
  21. end
  22.  
  23.  
  24. -- these two handlers are called by the behaviour "rollers-sprites", for the exterior obj movie rollovers.  Each sprite, on mouseEnter, calls the "change" handler in this script, passing in a number (in the form of a string) to this handler, who then converts it to the appropriate cast number.  When the other behaviour gets the "on mouseLeave me" event, it calls "reset" on this script.
  25.  
  26. on change me, theNum
  27.   set suffix = string(theNum)
  28.   set theName = root&suffix
  29.   set the member of sprite mySprite = member theName
  30. end
  31.  
  32. on reset me
  33.   set the member of sprite mySprite = member myMember
  34. end
  35.